package com.hmy.security.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import java.io.Serializable;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

/**
 * <p>
 * 菜单与用户的关系表（给某个用户指定其对应角色不存在的菜单权限）
 * </p>
 *
 * @author hmy
 * @since 2023-01-30
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
public class MenuUser implements Serializable {

    private static final long serialVersionUID = 1L;

    /**
     * 自增主键
     */
    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    /**
     * 菜单id
     */
    private Integer menuId;

    /**
     * 用户id
     */
    private Long uid;

    /**
     * 添加/删除权限  0-删除权限 1-添加权限
     */
    private Boolean isAdd;


}
